package com.yanqu.road.entity.activity.liondance;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.player.UserBaseInfo;

@FieldTypeAnnotation(tableName = "t_u_activity_lion_dance_apply", desc = "卡牌申请记录")
public class LionDanceUserApplyData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", select = true, update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "申请卡片id")
    private int applyGoodsId;

    @FieldTypeAnnotation(desc = "申请时间")
    private long applyTimes;

    @FieldTypeAnnotation(desc = "状态：0：申请中；1：已过期；2：已达成；3：已领取；4：已取消")
    private int status;

    @FieldTypeAnnotation(desc = "玩家区服id")
    private long serverId;

    @FieldTypeAnnotation(desc = "赠送人")
    private long friendId;

    @FieldTypeAnnotation(desc = "赠送人信息")
    private UserBaseInfo friend;

    @FieldTypeAnnotation(desc = "记录编号")
    private int applyNo;

    @FieldTypeAnnotation(desc = "1：商会频道；2：活动频道")
    private int fromType;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if(this.activityId != activityId) {
            this.activityId = activityId;
            setUpdateOption();
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public long getServerId() {
        return serverId;
    }

    public void setServerId(long serverId) {
        if(this.serverId != serverId) {
            this.serverId = serverId;
            setUpdateOption();
        }
    }

    public int getApplyGoodsId() {
        return applyGoodsId;
    }

    public void setApplyGoodsId(int applyGoodsId) {
        if(this.applyGoodsId != applyGoodsId) {
            this.applyGoodsId = applyGoodsId;
            setUpdateOption();
        }
    }

    public long getApplyTimes() {
        return applyTimes;
    }

    public void setApplyTimes(long applyTimes) {
        if(this.applyTimes != applyTimes) {
            this.applyTimes = applyTimes;
            setUpdateOption();
        }
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        if(this.status != status) {
            this.status = status;
            setUpdateOption();
        }
    }

    public long getFriendId() {
        return friendId;
    }

    public void setFriendId(long friendId) {
        if(this.friendId != friendId) {
            this.friendId = friendId;
            setUpdateOption();
        }
    }

    public UserBaseInfo getFriend() {
        return friend;
    }

    public void setFriend(UserBaseInfo friend) {
        this.friend = friend;
        setUpdateOption();
    }

    public int getApplyNo() {
        return applyNo;
    }

    public void setApplyNo(int applyNo) {
        if(this.applyNo != applyNo) {
            this.applyNo = applyNo;
            setUpdateOption();
        }
    }

    public int getFromType() {
        return fromType;
    }

    public void setFromType(int fromType) {
        if(this.fromType != fromType) {
            this.fromType = fromType;
            setUpdateOption();
        }
    }
}
